package com.ys.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ys.common.utils.PageUtils;
import com.ys.gulimall.product.entity.ProductAttrValueEntity;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * spu属性值
 *
 * @author yeswater
 * @email ruobairuo@gmail.com
 * @date 2021-07-16 16:28:06
 */
public interface ProductAttrValueService extends IService<ProductAttrValueEntity> {

    PageUtils queryPage(Map<String, Object> params);
	
	void saveProductAttr(List<ProductAttrValueEntity> collect);
	
	List<ProductAttrValueEntity> baseAttrListForSpu(Long spuId);
	
	@Transactional(rollbackFor = Exception.class)
	void updateSpuAttr(Long spuId, List<ProductAttrValueEntity> entities);
}

